/* 
 * File:   FontMgr.h
 * Author: filipp
 *
 * Created on March 18, 2010, 2:18 PM
 */

#ifndef _FONTMGR_H
#define	_FONTMGR_H

#include "GLFT_Font.hpp"

class FontMgr{
public:
	~FontMgr();
	static FontMgr& getInstance() { return instance; }
	size_t loadFont(const std::string& address, unsigned size); //0 is default font, returns a value on success, 0 on failure
	GLFT_Font& font(size_t index);
	GLFT_Font& operator[](size_t index);
private:
	FontMgr();
	FontMgr(const FontMgr&){}
	FontMgr& operator=(const FontMgr&){}
	static FontMgr instance;
	std::vector<GLFT_Font*> fonts;
	std::vector<size_t> vacancies;
};

#endif	/* _FONTMGR_H */

